/**
 * Doctor.java
 * 
 * $Source$
 */
/*
 * Copyright (c) 2012 MyDoctor.com, Inc. All rights reserved.
 */

package com.mydoctor.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * The persistent class for the doctors database table.
 * 
 */
@Entity
@Table(name = "doctors")
public class Doctor implements Serializable
{
    private static final long serialVersionUID = 1L;
    private int doctorId;
    private String addressLine1;
    private String addressLine2;
    private String city;
    private String country;
    private String degrees;
    private String name;
    private float rating;
    private int ratingCount;
    private String specialities;
    private String state;

    protected Doctor()
    {
    }

    /**
     * @param doctorId
     * @param addressLine1
     * @param addressLine2
     * @param city
     * @param country
     * @param degrees
     * @param name
     * @param rating
     * @param ratingCount
     * @param specialities
     * @param state
     */
    public Doctor(
        int doctorId,
        String addressLine1,
        String addressLine2,
        String city,
        String country,
        String degrees,
        String name,
        float rating,
        int ratingCount,
        String specialities,
        String state)
    {
        super();
        this.doctorId = doctorId;
        this.addressLine1 = addressLine1;
        this.addressLine2 = addressLine2;
        this.city = city;
        this.country = country;
        this.degrees = degrees;
        this.name = name;
        this.rating = rating;
        this.ratingCount = ratingCount;
        this.specialities = specialities;
        this.state = state;
    }

    public String getAddressLine1()
    {
        return this.addressLine1;
    }

    public String getAddressLine2()
    {
        return this.addressLine2;
    }

    public String getCity()
    {
        return this.city;
    }

    public String getCountry()
    {
        return this.country;
    }

    public String getDegrees()
    {
        return this.degrees;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public int getDoctorId()
    {
        return this.doctorId;
    }

    public String getName()
    {
        return this.name;
    }

    public float getRating()
    {
        return this.rating;
    }

    public int getRatingCount()
    {
        return this.ratingCount;
    }

    public String getSpecialities()
    {
        return this.specialities;
    }

    public String getState()
    {
        return this.state;
    }

    protected void setAddressLine1(String addressLine1)
    {
        this.addressLine1 = addressLine1;
    }

    protected void setAddressLine2(String addressLine2)
    {
        this.addressLine2 = addressLine2;
    }

    protected void setCity(String city)
    {
        this.city = city;
    }

    protected void setCountry(String country)
    {
        this.country = country;
    }

    protected void setDegrees(String degrees)
    {
        this.degrees = degrees;
    }

    protected void setDoctorId(int doctorId)
    {
        this.doctorId = doctorId;
    }

    protected void setName(String name)
    {
        this.name = name;
    }

    protected void setRating(float rating)
    {
        this.rating = rating;
    }

    protected void setRatingCount(int ratingCount)
    {
        this.ratingCount = ratingCount;
    }

    protected void setSpecialities(String specialities)
    {
        this.specialities = specialities;
    }

    protected void setState(String state)
    {
        this.state = state;
    }

}